package com.fcscs.cservice.client.main.configuration.restaurant;

import com.extjs.gxt.ui.client.event.SelectionChangedEvent;
import com.extjs.gxt.ui.client.event.SelectionChangedListener;
import com.extjs.gxt.ui.client.store.ListStore;
import com.extjs.gxt.ui.client.widget.Label;
import com.extjs.gxt.ui.client.widget.LayoutContainer;
import com.extjs.gxt.ui.client.widget.VerticalPanel;
import com.extjs.gxt.ui.client.widget.form.ComboBox.TriggerAction;
import com.extjs.gxt.ui.client.widget.form.FieldSet;
import com.extjs.gxt.ui.client.widget.form.TextArea;
import com.extjs.gxt.ui.client.widget.form.TextField;
import com.extjs.gxt.ui.client.widget.layout.ColumnData;
import com.extjs.gxt.ui.client.widget.layout.ColumnLayout;
import com.fcscs.core.gwt.common.CoreConstants;
import com.fcscs.core.gwt.common.ui.FcsFields.EasyClearCombobox;
import com.fcscs.cservice.client.common.CServiceConstants;
import com.fcscs.cservice.client.common.model.configuration.restaurant.BookingComfirmationGWTEnum;
import com.fcscs.cservice.client.common.model.configuration.restaurant.BookingConfirmTitleGWTEnum;
import com.fcscs.cservice.client.common.model.configuration.restaurant.BookingConfirmTitleGWTEnumModelData;
import com.fcscs.cservice.client.common.model.configuration.restaurant.BookingConfirmationGWTEnumModelData;
import com.fcscs.cservice.client.common.model.configuration.restaurant.BookingTimeoutGWTEnum;
import com.fcscs.cservice.client.common.model.configuration.restaurant.BookingTimeoutGWTEnumModelData;
import com.fcscs.cservice.client.common.model.configuration.restaurant.ReservRckEnum;
import com.fcscs.cservice.client.common.model.configuration.restaurant.ReservRckModelData;
import com.fcscs.cservice.client.common.model.configuration.restaurant.ReservationTimeoutEnum;
import com.fcscs.cservice.client.common.model.configuration.restaurant.ReservationTimeoutModelData;
import com.fcscs.cservice.client.common.model.restaurants.BookingRequestMsgTempGWTEnum;
import com.fcscs.cservice.client.common.model.restaurants.BookingRequestMsgTempGWTEnumModelData;
import com.fcscs.cservice.client.common.model.restaurants.BookingRequestMsgTitleTempGWTEnum;
import com.fcscs.cservice.client.common.model.restaurants.BookingRequestMsgTitleTempGWTEnumModelData;
import com.fcscs.share.gwt.common.ShareGWTConstants;

public class RestaurantCommonConfigArea extends VerticalPanel {
	public TextArea reqPopupArea;
	public TextArea bookingComfMessArea;
	public TextArea timeoutAlertMessArea;
	public TextArea bookingMessTempArea;
	public FieldSet fieldSet1;
	public FieldSet fieldSet2;
	public FieldSet fieldSet3;
	public FieldSet fieldSet4;
	public EasyClearCombobox<BookingConfirmationGWTEnumModelData> bookingComfMessCombox;
	public ListStore<BookingConfirmationGWTEnumModelData> bookingComStore;
	public LayoutContainer bookingLc;
	public LayoutContainer bookingAreLc;
	public LayoutContainer timeoutLc;
	public EasyClearCombobox<ReservationTimeoutModelData> timeoutCombox;
	public ListStore<ReservationTimeoutModelData> timeoutStore;
	public LayoutContainer timeoutAreLc;
	public LayoutContainer bookingTempLc;
	public LayoutContainer reqPopupLc;
	public LayoutContainer bookingTileFieldLc;
	public EasyClearCombobox<BookingConfirmTitleGWTEnumModelData> bookingTitleMesCombox;
	public ListStore<BookingConfirmTitleGWTEnumModelData> bookingTitleMesStore;
	public LayoutContainer bookingTitleLc;
	public TextField<String> bookingTitleField;
	public LayoutContainer timeoutTitleMegLc;
	public EasyClearCombobox<BookingTimeoutGWTEnumModelData> timeoutTitleCombox;
	public ListStore<BookingTimeoutGWTEnumModelData> timeoutTitleStore;
	public LayoutContainer timeoutTitleLc;
	public TextField<String> timeoutTitleField;
	public LayoutContainer bookingTempTitleMesLc;
	public EasyClearCombobox<BookingRequestMsgTitleTempGWTEnumModelData> bookingReqTitleMesCombox;
	public ListStore<BookingRequestMsgTitleTempGWTEnumModelData> bookingReqTitleMesStore;
	public TextField<String> bookingReqTitleField;
	public LayoutContainer bookingReqTitleLc;
	public LayoutContainer bookingTempAreaLc;
	public EasyClearCombobox<BookingRequestMsgTempGWTEnumModelData> bookingTempAreaCombox;
	public ListStore<BookingRequestMsgTempGWTEnumModelData> bookingTempAreaStore;
	public LayoutContainer reserLc;
	public EasyClearCombobox<ReservRckModelData> reserCombox;
	public ListStore<ReservRckModelData> reserStore;

	public RestaurantCommonConfigArea() {
		ReserReqAckPopupFieldSet();
		BookingConfMesgFieldSet();
		ResBookingTimeoutAlertMesgTempFieldSet();
		BookingReqMesgTempFieldSet();
	}

	public void ReserReqAckPopupFieldSet() {
		fieldSet1 = new FieldSet();
		fieldSet1.setWidth(700);
		fieldSet1.setBorders(true);
		fieldSet1.setId("RestaurantConfigPanel_fieldSet1");
		fieldSet1.setHeading(CServiceConstants.CSERVICE_CONSTANTS.reservationRequestAcknPopup()
				+ CoreConstants.REQURIED_FIELD_LABEL);
		add(fieldSet1);

		reserLc = new LayoutContainer();
		reserLc.setStyleAttribute(CServiceConstants.CSS_MARGINTOP, "5px");
		reserLc.setLayout(new ColumnLayout());
		fieldSet1.add(reserLc);

		Label reserLab = new Label(CServiceConstants.CSERVICE_CONSTANTS.messageField()
				+ CServiceConstants.FIELD_SEP);
		reserLab.setId("RestaurantConfigPanel_reserLab");
		reserLc.add(reserLab, new ColumnData(100));

		reserCombox = new EasyClearCombobox<ReservRckModelData>();
		reserCombox.setDisplayField(CoreConstants.FULLTNAME);
		reserCombox.setTriggerAction(TriggerAction.ALL);
		reserCombox.setForceSelection(true);
		reserStore = new ListStore<ReservRckModelData>();
		for (ReservRckEnum cm : ReservRckEnum.values()) {
			reserStore.add(new ReservRckModelData(cm));
		}
		reserCombox.setId("RestaurantConfigPanel_fieldSet2");
		reserCombox.setStore(reserStore);
		reserLc.add(reserCombox, new ColumnData(200));
		reserCombox.addSelectionChangedListener(new SelectionChangedListener<ReservRckModelData>() {

			@Override
			public void selectionChanged(SelectionChangedEvent<ReservRckModelData> se) {
				if (reserCombox.getValue() != null) {
					reqPopupArea.setValue(((reqPopupArea.getValue() == null) ? ""
							: reqPopupArea.getValue())
							+ "<[<"
							+ reserCombox.getValue().getEnum().getDisplayStr() + ">]>");
				}
			}
		});
		
		reqPopupLc = new LayoutContainer();
		reqPopupLc.setStyleAttribute(CServiceConstants.CSS_MARGINTOP, "5px");
		reqPopupLc.setLayout(new ColumnLayout());
		fieldSet1.add(reqPopupLc);
		
		Label reqPopupLab = new Label(CoreConstants.CORE_CONSTANTS.details() + CServiceConstants.FIELD_SEP);
		reqPopupLab.setId("RestaurantConfigPanel_reqPopupLab");
		reqPopupLc.add(reqPopupLab, new ColumnData(100));

		reqPopupArea = new TextArea();
		reqPopupArea.setAllowBlank(false);
		reqPopupArea.setId("RestaurantConfigPanel_reqPopupArea");
		reqPopupArea.setSize(550, 50);
		reqPopupLc.add(reqPopupArea);
	}

	public void BookingConfMesgFieldSet() {
		fieldSet2 = new FieldSet();
		fieldSet2.setBorders(true);
		fieldSet2.setId("RestaurantConfigPanel_fieldSet2");
		fieldSet2.setHeading(CServiceConstants.CSERVICE_CONSTANTS.bookingConfirmMesg()
				+ CoreConstants.REQURIED_FIELD_LABEL);
		add(fieldSet2);
		bookingTileFieldLc = new LayoutContainer();
		bookingTileFieldLc.setLayout(new ColumnLayout());
		fieldSet2.add(bookingTileFieldLc);

		Label bookingTitleMesLab = new Label(CServiceConstants.CSERVICE_CONSTANTS.messageField()
				+ CServiceConstants.FIELD_SEP);
		bookingTitleMesLab.setId("RestaurantConfigPanel_bookingTitleMesLab");
		bookingTileFieldLc.add(bookingTitleMesLab, new ColumnData(100));

		bookingTitleMesCombox = new EasyClearCombobox<BookingConfirmTitleGWTEnumModelData>();

		bookingTitleMesCombox.setDisplayField(CoreConstants.FULLTNAME);
		bookingTitleMesCombox.setTriggerAction(TriggerAction.ALL);
		bookingTitleMesCombox.setForceSelection(true);
		bookingTitleMesStore = new ListStore<BookingConfirmTitleGWTEnumModelData>();
		for (BookingConfirmTitleGWTEnum cm : BookingConfirmTitleGWTEnum.values()) {
			bookingTitleMesStore.add(new BookingConfirmTitleGWTEnumModelData(cm));
		}
		bookingTitleMesCombox.setId("RestaurantConfigPanel_bookingTitleMesCombox");
		bookingTitleMesCombox.setStore(bookingTitleMesStore);
		bookingTileFieldLc.add(bookingTitleMesCombox, new ColumnData(200));
		bookingTitleMesCombox
				.addSelectionChangedListener(new SelectionChangedListener<BookingConfirmTitleGWTEnumModelData>() {

					@Override
					public void selectionChanged(SelectionChangedEvent<BookingConfirmTitleGWTEnumModelData> se) {
						if (bookingTitleMesCombox.getValue() != null) {
							bookingTitleField.setValue(((bookingTitleField.getValue() == null) ? ""
									: bookingTitleField.getValue())
									+ "<[<"
									+ bookingTitleMesCombox.getValue().getEnum().getDisplayStr() + ">]>");
						}
					}
				});

		bookingTitleLc = new LayoutContainer();
		bookingTitleLc.setStyleAttribute(CServiceConstants.CSS_MARGINTOP, "5px");
		bookingTitleLc.setLayout(new ColumnLayout());
		fieldSet2.add(bookingTitleLc);

		Label bookingTitleLab = new Label(ShareGWTConstants.SHARE_GWT_CONSTANTS.title()
				+ CServiceConstants.FIELD_SEP);
		bookingTitleLab.setId("RestaurantConfigPanel_bookingTitleLab");
		bookingTitleLc.add(bookingTitleLab, new ColumnData(100));

		bookingTitleField = new TextField<String>();
		bookingTitleField.setAllowBlank(false);
		bookingTitleField.setId("RestaurantConfigPanel_bookingTitleField");
		bookingTitleLc.add(bookingTitleField, new ColumnData(200));

		bookingLc = new LayoutContainer();
		bookingLc.setStyleAttribute(CServiceConstants.CSS_MARGINTOP, "5px");
		bookingLc.setLayout(new ColumnLayout());
		fieldSet2.add(bookingLc);

		Label bookingComfMessLab = new Label(CServiceConstants.CSERVICE_CONSTANTS.messageField()
				+ CServiceConstants.FIELD_SEP);
		bookingComfMessLab.setId("RestaurantConfigPanel_bookingComfMessLab");
		bookingLc.add(bookingComfMessLab, new ColumnData(100));

		bookingComfMessCombox = new EasyClearCombobox<BookingConfirmationGWTEnumModelData>();
		bookingComfMessCombox.setDisplayField(CoreConstants.FULLTNAME);
		bookingComfMessCombox.setTriggerAction(TriggerAction.ALL);
		bookingComfMessCombox.setForceSelection(true);
		bookingComStore = new ListStore<BookingConfirmationGWTEnumModelData>();
		for (BookingComfirmationGWTEnum cm : BookingComfirmationGWTEnum.values()) {
			bookingComStore.add(new BookingConfirmationGWTEnumModelData(cm));
		}
		bookingComfMessCombox.setId("RestaurantConfigPanel_fieldSet2");
		bookingComfMessCombox.setStore(bookingComStore);
		bookingLc.add(bookingComfMessCombox, new ColumnData(200));
		bookingComfMessCombox
				.addSelectionChangedListener(new SelectionChangedListener<BookingConfirmationGWTEnumModelData>() {

					@Override
					public void selectionChanged(SelectionChangedEvent<BookingConfirmationGWTEnumModelData> se) {
						if (bookingComfMessCombox.getValue() != null) {
							bookingComfMessArea.setValue(((bookingComfMessArea.getValue() == null) ? ""
									: bookingComfMessArea.getValue())
									+ "<[<"
									+ bookingComfMessCombox.getValue().getEnum().getDisplayStr() + ">]>");
						}
					}
				});

		bookingAreLc = new LayoutContainer();
		bookingAreLc.setLayout(new ColumnLayout());
		fieldSet2.add(bookingAreLc);

		Label bookingAreLab = new Label(CoreConstants.CORE_CONSTANTS.details() + CServiceConstants.FIELD_SEP);
		bookingAreLab.setId("RestaurantConfigPanel_bookingComfMessLab");
		bookingAreLc.add(bookingAreLab, new ColumnData(100));

		bookingComfMessArea = new TextArea();
		bookingComfMessArea.setAllowBlank(false);
		bookingComfMessArea.setFieldLabel(CoreConstants.CORE_CONSTANTS.details()
				+ CServiceConstants.FIELD_SEP);
		bookingComfMessArea.setStyleAttribute(CServiceConstants.CSS_MARGINTOP, "5px");
		bookingComfMessArea.setId("RestaurantConfigPanel_bookingComfMessArea");
		bookingComfMessArea.setSize(550, 50);
		bookingAreLc.add(bookingComfMessArea);
	}

	public void ResBookingTimeoutAlertMesgTempFieldSet() {
		fieldSet3 = new FieldSet();
		fieldSet3.setBorders(true);
		fieldSet3.setId("RestaurantConfigPanel_fieldSet3");
		fieldSet3.setHeading(CServiceConstants.CSERVICE_CONSTANTS.restaurantBookingMesgTemp()
				+ CoreConstants.REQURIED_FIELD_LABEL);
		add(fieldSet3);

		timeoutTitleMegLc = new LayoutContainer();
		timeoutTitleMegLc.setId("RestaurantConfigPanel_timeouttitleMegLc");
		timeoutTitleMegLc.setLayout(new ColumnLayout());
		fieldSet3.add(timeoutTitleMegLc);

		Label timeoutTitleMessLab = new Label(CServiceConstants.CSERVICE_CONSTANTS.messageField()
				+ CServiceConstants.FIELD_SEP);
		timeoutTitleMessLab.setId("RestaurantConfigPanel_timeoutTitleMessLab");
		timeoutTitleMegLc.add(timeoutTitleMessLab, new ColumnData(100));

		timeoutTitleCombox = new EasyClearCombobox<BookingTimeoutGWTEnumModelData>();
		timeoutTitleCombox.setDisplayField(CoreConstants.FULLTNAME);
		timeoutTitleCombox.setTriggerAction(TriggerAction.ALL);
		timeoutTitleCombox.setForceSelection(true);
		timeoutTitleStore = new ListStore<BookingTimeoutGWTEnumModelData>();
		for (BookingTimeoutGWTEnum cm : BookingTimeoutGWTEnum.values()) {
			timeoutTitleStore.add(new BookingTimeoutGWTEnumModelData(cm));
		}
		timeoutTitleCombox.setId("RestaurantConfigPanel_timeoutTitleCombox");
		timeoutTitleCombox.setStore(timeoutTitleStore);
		timeoutTitleMegLc.add(timeoutTitleCombox, new ColumnData(200));
		timeoutTitleCombox
				.addSelectionChangedListener(new SelectionChangedListener<BookingTimeoutGWTEnumModelData>() {

					@Override
					public void selectionChanged(SelectionChangedEvent<BookingTimeoutGWTEnumModelData> se) {
						if (timeoutTitleCombox.getValue() != null) {
							timeoutTitleField.setValue(((timeoutTitleField.getValue() == null) ? ""
									: timeoutTitleField.getValue())
									+ "<[<"
									+ timeoutTitleCombox.getValue().getEnum().getDisplayStr() + ">]>");
						}
					}
				});

		timeoutTitleLc = new LayoutContainer();
		timeoutTitleLc.setStyleAttribute(CServiceConstants.CSS_MARGINTOP, "5px");
		timeoutTitleLc.setId("RestaurantConfigPanel_timeouttitleMegLc");
		timeoutTitleLc.setLayout(new ColumnLayout());
		fieldSet3.add(timeoutTitleLc);

		Label timeoutTitleLab = new Label(ShareGWTConstants.SHARE_GWT_CONSTANTS.title()
				+ CServiceConstants.FIELD_SEP);
		timeoutTitleLab.setId("RestaurantConfigPanel_timeoutTitleLab");
		timeoutTitleLc.add(timeoutTitleLab, new ColumnData(100));

		timeoutTitleField = new TextField<String>();
		timeoutTitleField.setAllowBlank(false);
		timeoutTitleField.setId("RestaurantConfigPanel_bookingTitleField");
		timeoutTitleLc.add(timeoutTitleField, new ColumnData(200));

		timeoutLc = new LayoutContainer();
		timeoutLc.setStyleAttribute(CServiceConstants.CSS_MARGINTOP, "5px");
		timeoutLc.setId("RestaurantConfigPanel_timeoutLc");
		timeoutLc.setLayout(new ColumnLayout());
		fieldSet3.add(timeoutLc);

		Label timeoutMessLab = new Label(CServiceConstants.CSERVICE_CONSTANTS.messageField()
				+ CServiceConstants.FIELD_SEP);
		timeoutMessLab.setId("RestaurantConfigPanel_timeoutMessLab");
		timeoutLc.add(timeoutMessLab, new ColumnData(100));

		timeoutCombox = new EasyClearCombobox<ReservationTimeoutModelData>();
		timeoutCombox.setDisplayField(CoreConstants.FULLTNAME);
		timeoutCombox.setTriggerAction(TriggerAction.ALL);
		timeoutCombox.setForceSelection(true);
		timeoutStore = new ListStore<ReservationTimeoutModelData>();
		for (ReservationTimeoutEnum cm : ReservationTimeoutEnum.values()) {
			timeoutStore.add(new ReservationTimeoutModelData(cm));
		}
		timeoutCombox.setId("RestaurantConfigPanel_timeoutCombox");
		timeoutCombox.setStore(timeoutStore);
		timeoutLc.add(timeoutCombox, new ColumnData(200));
		timeoutCombox
				.addSelectionChangedListener(new SelectionChangedListener<ReservationTimeoutModelData>() {

					@Override
					public void selectionChanged(SelectionChangedEvent<ReservationTimeoutModelData> se) {
						if (timeoutCombox.getValue() != null) {
							timeoutAlertMessArea.setValue(((timeoutAlertMessArea.getValue() == null) ? ""
									: timeoutAlertMessArea.getValue())
									+ "<[<"
									+ timeoutCombox.getValue().getEnum().getDisplayStr() + ">]>");
						}
					}
				});

		timeoutAreLc = new LayoutContainer();
		timeoutAreLc.setStyleAttribute(CServiceConstants.CSS_MARGINTOP, "5px");
		timeoutAreLc.setLayout(new ColumnLayout());
		fieldSet3.add(timeoutAreLc);

		Label timeoutAreaLab = new Label(CoreConstants.CORE_CONSTANTS.details() + CServiceConstants.FIELD_SEP);
		timeoutAreaLab.setId("RestaurantConfigPanel_timeoutAreaLab");
		timeoutAreLc.add(timeoutAreaLab, new ColumnData(100));

		timeoutAlertMessArea = new TextArea();
		timeoutAlertMessArea.setAllowBlank(false);
		timeoutAlertMessArea.setId("RestaurantConfigPanel_timeoutAlertMessArea");
		timeoutAlertMessArea.setSize(550, 50);
		timeoutAreLc.add(timeoutAlertMessArea);
	}

	public void BookingReqMesgTempFieldSet() {
		fieldSet4 = new FieldSet();
		fieldSet4.setBorders(true);
		fieldSet4.setId("RestaurantConfigPanel_fieldSet4");
		fieldSet4.setHeading(CServiceConstants.CSERVICE_CONSTANTS.bookingReqMesgTemp()
				+ CoreConstants.REQURIED_FIELD_LABEL);
		add(fieldSet4);

		bookingTempTitleMesLc = new LayoutContainer();
		bookingTempTitleMesLc.setStyleAttribute(CServiceConstants.CSS_MARGINTOP, "5px");
		bookingTempTitleMesLc.setLayout(new ColumnLayout());
		fieldSet4.add(bookingTempTitleMesLc);

		Label bookingReqTitleMesLab = new Label(CServiceConstants.CSERVICE_CONSTANTS.messageField()
				+ CServiceConstants.FIELD_SEP);
		bookingReqTitleMesLab.setId("RestaurantConfigPanel_bookingReqTitleMesLab");
		bookingTempTitleMesLc.add(bookingReqTitleMesLab, new ColumnData(100));

		bookingReqTitleMesCombox = new EasyClearCombobox<BookingRequestMsgTitleTempGWTEnumModelData>();
		bookingReqTitleMesCombox.setDisplayField(CoreConstants.FULLTNAME);
		bookingReqTitleMesCombox.setTriggerAction(TriggerAction.ALL);
		bookingReqTitleMesCombox.setForceSelection(true);
		bookingReqTitleMesStore = new ListStore<BookingRequestMsgTitleTempGWTEnumModelData>();
		for (BookingRequestMsgTitleTempGWTEnum cm : BookingRequestMsgTitleTempGWTEnum.values()) {
			bookingReqTitleMesStore.add(new BookingRequestMsgTitleTempGWTEnumModelData(cm));
		}
		bookingReqTitleMesCombox.setId("RestaurantConfigPanel_bookingReqTitleMesCombox");
		bookingReqTitleMesCombox.setStore(bookingReqTitleMesStore);
		bookingTempTitleMesLc.add(bookingReqTitleMesCombox, new ColumnData(200));
		bookingReqTitleMesCombox
				.addSelectionChangedListener(new SelectionChangedListener<BookingRequestMsgTitleTempGWTEnumModelData>() {

					@Override
					public void selectionChanged(
							SelectionChangedEvent<BookingRequestMsgTitleTempGWTEnumModelData> se) {
						if (bookingReqTitleMesCombox.getValue() != null) {
							bookingReqTitleField.setValue(((bookingReqTitleField.getValue() == null) ? ""
									: bookingReqTitleField.getValue())
									+ "<[<"
									+ bookingReqTitleMesCombox.getValue().getEnum().getDisplayStr() + ">]>");
						}
					}
				});

		bookingReqTitleLc = new LayoutContainer();
		bookingReqTitleLc.setStyleAttribute(CServiceConstants.CSS_MARGINTOP, "5px");
		bookingReqTitleLc.setLayout(new ColumnLayout());
		fieldSet4.add(bookingReqTitleLc);

		Label bookingReqTitleLab = new Label(ShareGWTConstants.SHARE_GWT_CONSTANTS.title()
				+ CServiceConstants.FIELD_SEP);
		bookingReqTitleLab.setId("RestaurantConfigPanel_timeoutTitleLab");
		bookingReqTitleLc.add(bookingReqTitleLab, new ColumnData(100));

		bookingReqTitleField = new TextField<String>();
		bookingReqTitleField.setAllowBlank(false);
		bookingReqTitleField.setId("RestaurantConfigPanel_bookingReqTitleField");
		bookingReqTitleLc.add(bookingReqTitleField, new ColumnData(200));
		//
		bookingTempAreaLc = new LayoutContainer();
		bookingTempAreaLc.setStyleAttribute(CServiceConstants.CSS_MARGINTOP, "5px");
		bookingTempAreaLc.setLayout(new ColumnLayout());
		fieldSet4.add(bookingTempAreaLc);

		Label bookingTempAreaLab = new Label(CServiceConstants.CSERVICE_CONSTANTS.messageField()
				+ CServiceConstants.FIELD_SEP);
		bookingTempAreaLab.setId("RestaurantConfigPanel_bookingTempAreaLab");
		bookingTempAreaLc.add(bookingTempAreaLab, new ColumnData(100));

		bookingTempAreaCombox = new EasyClearCombobox<BookingRequestMsgTempGWTEnumModelData>();
		bookingTempAreaCombox.setDisplayField(CoreConstants.FULLTNAME);
		bookingTempAreaCombox.setTriggerAction(TriggerAction.ALL);
		bookingTempAreaCombox.setForceSelection(true);
		bookingTempAreaStore = new ListStore<BookingRequestMsgTempGWTEnumModelData>();
		for (BookingRequestMsgTempGWTEnum cm : BookingRequestMsgTempGWTEnum.values()) {
			bookingTempAreaStore.add(new BookingRequestMsgTempGWTEnumModelData(cm));
		}
		bookingTempAreaCombox.setId("RestaurantConfigPanel_timeoutCombox");
		bookingTempAreaCombox.setStore(bookingTempAreaStore);
		bookingTempAreaLc.add(bookingTempAreaCombox, new ColumnData(200));
		bookingTempAreaCombox
				.addSelectionChangedListener(new SelectionChangedListener<BookingRequestMsgTempGWTEnumModelData>() {

					@Override
					public void selectionChanged(
							SelectionChangedEvent<BookingRequestMsgTempGWTEnumModelData> se) {
						if (bookingTempAreaCombox.getValue() != null) {
							bookingMessTempArea.setValue(((bookingMessTempArea.getValue() == null) ? ""
									: bookingMessTempArea.getValue())
									+ "<[<"
									+ bookingTempAreaCombox.getValue().getEnum().getDisplayStr() + ">]>");
						}
					}
				});

		bookingTempLc = new LayoutContainer();
		bookingTempLc.setStyleAttribute(CServiceConstants.CSS_MARGINTOP, "5px");
		bookingTempLc.setLayout(new ColumnLayout());
		fieldSet4.add(bookingTempLc);

		Label bookingTempLab = new Label(CoreConstants.CORE_CONSTANTS.details() + CServiceConstants.FIELD_SEP);
		bookingTempLab.setId("RestaurantConfigPanel_bookingTempLc");
		bookingTempLc.add(bookingTempLab, new ColumnData(100));

		bookingMessTempArea = new TextArea();
		bookingMessTempArea.setAllowBlank(false);
		bookingMessTempArea.setId("RestaurantConfigPanel_bookingMessTempArea");
		bookingMessTempArea.setSize(550, 50);
		bookingTempLc.add(bookingMessTempArea);
	}

}
